<template>
  <el-table :data="riskUserTableData.filter(data => !search || data.name.toLowerCase().includes(search.toLowerCase()))"
    style="width: 100%">

    <el-table-column label="用户名" prop="name">
      <template slot="header" slot-scope="scope">
        <el-input v-model="search" size="mini" placeholder="输入用户名搜索" />
      </template>
    </el-table-column>
    <el-table-column label="用户电话" prop="phone"></el-table-column>
    <el-table-column label="逾期天数" prop="overdue_days"></el-table-column>

  </el-table>
</template>

<script>
export default {
  props: {
    riskUserTableData: {

    }
  },
  data() {
    return {
      search: '' // 将 search 定义为组件内部的 data
    };
  },
  methods: {
    handleDelete(index, row) {
      console.log("删除操作", index, row);
    }
  }
};
</script>